from django.urls import path
from django.views.decorators.cache import cache_page
from . import views



urlpatterns = [
    #首页展示：v1/goods/index
    path("index",cache_page(300,cache="goods_index")(views.GoodsIndexView.as_view())),#默认缓存到settings的cache-->default中
    path("detail/<int:sku_id>",views.GoodsDetailView.as_view())
]